package xzy.com.entity.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 
* @Title: Menu
* @Description:板块管理
* @author: liyang
* @date 2020年11月25日 下午3:55:02
 */
@TableName("tb_menu")
public class Menu {
	@TableId(value = "menu_id", type = IdType.AUTO)
	private Long menuId;
	private Long parentId;// 父级id
	private String menuName;// 板块名称
	private String url;// 地址
	private String perms;// 权限
	private String icon;// 图标
	private Integer type;// 类型
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;// 创建时间
	@TableField(fill = FieldFill.UPDATE)
	private Date updateTime;// 修改时间
	private Integer avaliable;// 是否可用
	
    @TableField(exist = false)
    private String parentMenuName;//父板块名称
	
	public Long getMenuId() {
		return menuId;
	}
	public void setMenuId(Long menuId) {
		this.menuId = menuId;
	}
	
	public Long getParentId() {
		return parentId;
	}
	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}
	public String getMenuName() {
		return menuName;
	}
	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}
	
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getPerms() {
		return perms;
	}
	public void setPerms(String perms) {
		this.perms = perms;
	}
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public Integer getAvaliable() {
		return avaliable;
	}
	public void setAvaliable(Integer avaliable) {
		this.avaliable = avaliable;
	}
	
	
	public String getParentMenuName() {
		return parentMenuName;
	}
	public void setParentMenuName(String parentMenuName) {
		this.parentMenuName = parentMenuName;
	}
	@Override
	public String toString() {
		return "Menu [menuId=" + menuId + ", parentId=" + parentId + ", menuName=" + menuName + ", url=" + url
				+ ", perms=" + perms + ", icon=" + icon + ", type=" + type + ", createTime=" + createTime
				+ ", updateTime=" + updateTime + ", avaliable=" + avaliable + ", parentMenuName=" + parentMenuName
				+ "]";
	}
	
	
	
	
	
}
